package com20230214.xiti;

public class Recursion02 {
    public static void main(String[] args) {
        Recursion02 r = new Recursion02();
        int result = r.feibo();
        System.out.println(result);

    }
    static int feibo(int...arrs){
        int[] arr = arrs;
        System.out.println(arrs.length);
//        int i = 0;
        for ( int i = 0; i < arr.length; i++) {
            if (arr[i] + arr[i+1] != arr[i+2] ){
                continue;
            }
            return arr[i];
//            System.out.print(arr[i+2] + " ");
        }
        return feibo();



    }
}
